<?php
/**
 * View  LaFabbrica.org
 * 
 * @author     luigi.pastore (gigi@la-fabbrica.org)
 * @created    17-mag-2011
 * @package    LaFabbrica
 * @copyright  Copyright (c) 2011 Luigi Pastore
 */
?>
<script type="text/javascript">
    //<![CDATA[
     
    $(document).ready(function()
    {
	
    });

    //]]>
</script>

<div id="content">
    <div id="success">
	<ul>
	    <li id="successLi">
		<h3 id="successMsgLbl">Operazione Eseguita Correttamente!</h3>
	    </li>
	</ul>
    </div>
    <form>

	<ul>
	    <li class="paging-context ">
		<table class="pgStyle1 circle2" cellspacing="0">
		    <tr>
			<td class="c completed">
			    <var>1</var>
			</td>
			<td class="t completed">
			    <b id="pagecircle1">Artisti</b>
			</td>
			<td class="c completed">
			    <var>2</var>
			</td>
			<td class="t completed">
			    <b id="pagecircle2">Location</b>
			</td>
			<td class="c completed">
			    <var>3</var>
			</td>
			<td class="t completed">
			    <b id="pagecircle2">Dettagli Live</b>
			</td>
			<td class="c completed">
			    <var>3</var>
			</td>
			<td class="t completed">
			    <b id="pagecircle2">Conferma</b>
			</td>
			<td class="c selected">
			    <var>4</var>
			</td>
			<td class="t selected">
			    <b id="pagecircle2">Fine!</b>
			</td>
		    </tr>
		</table>
	    </li>

	</ul>
    </form>
    <div id="summary" class="live">
	<div class="head live">
	    <h2>Riepilogo Live:
	    </h2>

	</div>
	<div class="body">
	    <table cellspacing="0" class="table">
		<tbody>
		    <tr>
			<th>Artista:</th>
			<td>
			    <strong>
				<?php
				foreach( $this->live['artists']['main'] as $artist ) :
				    $artists_list .= $artist['artist_name'] . ', ';
				endforeach;
				?>
				<?php echo substr( $artists_list, 0, -2 ); ?>
			    </strong>
			</td>
		    </tr>
		    <?php if( count( $this->live['artists']['openingact'] ) ): ?>
    		    <tr>
    			<th>Open-act:</th>
    			<td>
    			    <strong>
				    <?php
				    $artists_list = null;
				    foreach( $this->live['artists']['openingact'] as $artist ) :
					$artists_list .= $artist['artist_name'] . ', ';
				    endforeach;
				    ?>
				    <?php echo substr( $artists_list, 0, -2 ); ?>				
    			    </strong>
    			</td>
    		    </tr>			
		    <?php endif; ?>
		    <tr>
			<th>Location:</th>
			<td><strong><?php echo $this->live['location']['location_name'] ?>, <?php echo $this->live['location']['location_city'] ?> (<?php echo $this->province[$this->live['location']['location_province_id']]['province_short_name'] ?>)</strong></td>
		    </tr>
		    <tr>
			<th>Quando:</th>
			<td><strong><?php echo $this->days[date( 'N', mktime( $hour, $minute, $second, $this->live['live_date_m'], $this->live['live_date_d'], $this->live['live_date_y'] ) )] ?>, <?php echo $this->live['live_date_ita'] ?></strong></td>
		    </tr>
		    <tr class="break">
			<td colspan="2">&nbsp;</td>
		    </tr>
		    <tr>
			<th>Ingresso:</th>
			<td><?php echo $this->live['live_price_1'] ? $this->live['live_price_1'] . ',' . $this->live['live_price_2'] . ' &euro;' : 'gratuito' ?></td>
		    </tr>
		    <tr>
			<th>Apertura Cancelli:</th>
			<td><?php echo $this->live['live_gate_open_h'] ? $this->live['live_gate_open_h'] . 'h' . $this->live['live_gate_open_m'] : '' ?></td>
		    </tr>
		    <tr>
			<th>Note:</th>
			<td><?php echo $this->live['live_notes'] ?></td>
		    </tr>
		    <tr class="live-status">
			<th>Stato:</th>
			<td>
			    <span class="proposal">Proposta</span>
			    <span class="pending">In Attesa</span>
			    <span class="confirmed">Confermato</span>
			    <span class="canceled">Annullato</span>
			</td>
		    </tr>
		</tbody>
	    </table>
	</div>
    </div>
    <br style="clear: both" />

    <form class="fab">
        <ul>
            <li class="section">
                <h3>Cosa vuoi fare ora?</h3>
            </li>
            <li class="addnew">
                <a id="linkliveevent" class="button" href="/admin/live/rassegne/id/<?php echo $this->live['live_id'] ?>">
                    <img src="/images/admin/16x16/calendar.png" />Questo Live fa parte di una rassegna/evento
                </a>
                <a id="new" class="button" href="/admin/live/artisti">
                    <img src="/images/admin/16x16/add-new.png" />Aggiungi Nuovo Live
                </a>
                            
                <a id="addpost" class="button" href="/admin/live/post/id/<?php echo $this->live['live_id'] ?>">
                    <img src="/images/admin/16x16/information.png" />Aggiungi Post
                </a>
            </li>
            <li class="addnew">
                <a id="" class="button" href="/admin/live">
                    <img src="/images/admin/location-icon.png" />Vai a Elenco Live
                </a>                
            </li>
        </ul>
    </form>
    <br class="clear"/>
</div>
